<template>
  <div class="a">
    <p>汇水区线编辑</p>

    <div class="hsq">
      <el-checkbox-group
        v-model="checkedCities"
        @change="handleCheckedCitiesChange"
      >
        <el-checkbox v-for="city in cities" :label="city" :key="city">{{
          city
        }}</el-checkbox>
      </el-checkbox-group>
      <div class="btn">
        <el-button type="small">绘制汇水区面</el-button>
        <el-button type="small">删除汇水区面</el-button>
        <el-button type="small">移动汇水区面</el-button>
        <el-button type="small">清空绘制</el-button>
      </div>
      <el-button type="small" style="margin-bottom: 10px">城区裁剪</el-button>
    </div>
    <div class="hdhsq">
      <p>获得汇水区</p>
      <el-button type="small">生成汇水区</el-button>
      <el-button type="small">管道排水</el-button>
    </div>
  </div>
</template>
<script>
export default {
  data() {
    return {
      cities: ["等高线", "内涝点", "城区流域", "城区径流"],
      checkedCities: "",
    };
  },
};
</script>
<style scoped lang="less">
.a {
  width: 100%;
  font-size: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  .hsq {
    margin: 10px;
    border-bottom: 1px solid #dedede;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    .el-checkbox-group {
      padding-left: 20px;
    }
    .el-checkbox {
      width: 40%;
    }
    .btn {
      margin: 10px;
      .el-button {
        margin: 5px;
        width: 45%;
      }
    }
  }
  .hdhsq {
    display: flex;
    flex-direction: column;
    align-items: center;
    .el-button {
      margin: 5px;
    }
  }
}
</style>
